
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

import '@/icons' // icon
import '@/config/permission' // permission control

import '@/styles/index.scss' // global css
Vue.config.productionTip = false


import request from '@/utils/request'
Vue.prototype.$request = request

import directive from './directive' // 指令
Vue.use(directive)

import { handleTree } from "@/utils/tree";
Vue.prototype.handleTree = handleTree

import elTableInfiniteScroll from 'el-table-infinite-scroll';
Vue.use(elTableInfiniteScroll);

Vue.use(ElementUI, {
  size: 'small'
});

import JsonViewer from 'vue-json-viewer'
// 导入样式
import 'vue-json-viewer/style.css'

// 全局注册
Vue.use(JsonViewer)
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
